#include "CalendarModel.h"

CalendarModel::CalendarModel(korlapAdmin_model* model,QLocale* locale)
{
	this->model = model;
	this->locale = locale;
	try{
		this->scheduler = new ScheduleTableModel(model,locale);
	}
	catch(Exception e)
	{
		throw e;
	}
	this->calendarCache = this->scheduler;
}


CalendarModel::~CalendarModel(void)
{
	
}


ScheduleTableModel* CalendarModel::getThisWeekModel()
{
	return this->calendarCache;
}

QPair<QDateTime*,QDateTime*>* CalendarModel::getCurrentWeekRange()
{
	return this->calendarCache->getWeekRange();
}